package com.example.homework.homework01;

/**
 * 交通工具类
 */
public class Vehicle {
    private String brand; // 车的品牌
    private String type; // 车的类型

    public Vehicle() {
    }

    public Vehicle(String brand, String type) {
        this.brand = brand;
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void start() {
        System.out.println(brand + "开始启动");
    }

    public void run() {
        System.out.println(brand + "正在高速公路上行驶");
    }
}
